import request from '@/utils/api'


export function listCircuitTree (params) {
  return request({
    url: '/circuit/listTree',
    method: 'get',
    params
  })
}


export function listCircuitPage (params) {
  return request({
    url: '/circuit/listPage',
    method: 'get',
    params
  })
}

export function getCircuitInfo (params) {
  return request({
    url: '/circuit/info',
    method:  'get',
    params
  })
}

export function addCircuit (data) {
  return request({
    url: '/circuit/add',
    method: 'post',
    data
  })
}

export function deleteCircuit (data) {
  return request({
    url: '/circuit/delete',
    method: 'post',
    data
  })

}

export function updateCircuit (data) {
  return request({
    url: '/circuit/update',
    method: 'post',
    data
  })
}

